//
//  VVMineTableViewController.swift
//  Weibo
//
//  Created by 王惠平 on 2017/3/26.
//  Copyright © 2017年 Will Wang. All rights reserved.
//

import UIKit

class VVMineTableViewController: VVVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogin {
            
            setupNavPush()
        } else {
            
            visitorView?.updateVisitorInfo(imageName: "visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        
//        setupNAVUI()
    }

    
   private func setupNavPush() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
   @objc private func pushAction() {
        
        let testVC = VVTestViewController()
        
        self.navigationController?.pushViewController(testVC, animated: true)
        
    }
    
    
//    func setupNAVUI() {
//        
//        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "注册", target: self, action: #selector(registerButtonAction))
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "登录", target: self, action: #selector(loginButtonAction))
//        
//
//    }
//
//    func registerButtonAction() {
//        
//        print("注册")
//    }
//    
//    func loginButtonAction() {
//        
//        print("登录")
//    }
//    
}
